package cn.itcast.service.system;

import cn.itcast.domain.system.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {

    //根据企业id查询全部
    List<User> findAll(String companyId);

    //根据id查询
    User findById(String userId);

    //根据id删除
    boolean delete(String userId);

    //保存
    void save(User user);

    //更新
    void update(User user);

    PageInfo<User> findByPage(String companyId, int pageNum, int pageSize);

    void changeRole(String userId, String[] roleIds);

    User findByEmail(String email);

}
